<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Insert title here</title>
<%@ include file="../include/top.jsp"%>
<%@ include file="../include/errorArea.jsp" %>
<%@ include file="../include/message-save.jsp" %>
</head>
<body>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" id="listOutTable">
  <tr>
    <td colspan="2" align="left" valign="middle" class="text_gray2"><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#96bee2">
      <tr>
        <td height="21" background="${baseURL}/images/table_bg.jpg">&nbsp;&nbsp;<span class="text_blue_b">
          <c:if test="${empty formdata.id || formdata.id==0}"><img src="${baseURL}/images/bit_add.png" width="16" height="14" border="0" align="absmiddle" /> 添加节点</c:if>
          <c:if test="${not empty formdata.id && formdata.id>0}"> <img src="${baseURL}/images/bit_edit.png" width="16" height="14" border="0" align="absmiddle" /> 编辑节点</c:if>
        </span></td>
      </tr>
      <tr>
        <td height="13" align="center" valign="top" bgcolor="#FFFFFF">
<form name="form1" method="post" action="${baseURL}/communityService/saveTreeNode"><input
	type="hidden" name="id" value="${formdata.id}" />
	<input
	type="hidden" name="treeId" value="${formdata.treeId}" />
<input type="hidden" name="comunityId" value="${comunityId}" />
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF" id="listTable">
	<tr>
		<td width="25%" align="right"><span class="mustInput">*</span>节点名称：</td>
		<td align="left"><input name="name" type="text" id="name"
			value="${formdata.name}" size="50" maxlength="50" /></td>
    </tr>
	<tr>
		<td align="right"><span class="mustInput">*</span>节点代码：</td>
		<td align="left"><input name="code" type="text" id="code"
			value="${formdata.code}" size="50" maxlength="50" /></td>
	</tr>
		<tr>
		<td align="right"><span class="mustInput">*</span>父节点：</td>
		<td align="left"><select name="pid" id="pid" style="width:320px">${listdata.pid}</select></td>
	</tr>
	<tr>
	  <td colspan="2" align="center"><input name="submit" type="submit" value="提交" class="myButton"/>
	    &nbsp;&nbsp;
        <input name="button" type="button" onclick="history.go(-1)" value="返回" class="myButton"/></td>
    </tr>
</table>
</form></td>
      </tr>
    </table></td>
  </tr>
</table>
<script>
doSelect(form1.pid,"${formdata.pid}");
</script>
<%@ include file="../include/bottom.jsp" %>
</body>